<?php get_header(); ?>


<div id="primary-content" class="container">
   <div class="primary-content-wrap row">
      <div id="content" class="col-lg-8">
      	<?php while ( have_posts() ) : the_post(); ?>
			<?php
			$categories_list = get_the_category_list( __( ', ', 'ctw2' ) );
			?>

			<article  id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemscope="itemscope" itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
			   <div class="entry-header">			     
			      <!-- .entry-info -->
			      
			      <h1 class="entry-title" itemprop="headline" itemscope="itemscope" itemtype="http://schema.org/headline"><?php echo the_title();?></h1>
			       <div class="entry-info">
			         <span class="entry-date" itemprop="dateModified" datetime="<?php echo get_the_date('c'); ?>"><?php echo get_the_date(); ?></span>
			         <span class="entry-author" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person"> by <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="Posts by <?php echo get_the_author(); ?>" rel="author"><?php echo get_the_author();?></a></span>
			         <span class="entry-categories"> in <?php echo $categories_list; ?></span>			         
			         <span class="comments-link"> - <?php comments_popup_link( __( 'Bình luận', 'ctw2' ), __( '1 Comment', 'ctw2' ), __( '% Comments', 'ctw2' ) ); ?></span>
			      </div>
			   </div>
			   <!-- .entry-header -->
			   <div class="entry-summary" itemprop="text">
			   		
			      <?php the_content(); ?>
			      
			   </div>
			   <?php if (has_tag()) { ?>
			   <div class="entry-header">		     
			      
			       <div class="entry-info">
			         <span class="entry-categories"><?php the_tags( 'Tags: ', ', ', ''); ?></span>		         
			         
			      </div>
			   </div>
			   <?php } ?>
			   <!-- .entry-summary -->
			   <div class="border"></div>
			</article>



			<?php comments_template( '', true ); ?>
		<?php endwhile; // end of the loop. ?>
        
        
         <!-- #post -->						
        <?php ctw2_numeric_posts_nav(); ?>
      <!-- end #content -->
      </div>
     <div id="sidebar" class="col-lg-4">
       		<?php get_sidebar(); ?>
      </div>
      <!-- end #sidebar -->	      
   </div>
</div>



<?php get_footer(); ?>

